package com.jdym.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 贷款审批
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Approval对象", description="贷款审批")
public class Approval implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "贷款审批id")
    @TableId(value = "approval_id", type = IdType.AUTO)
    private Integer approvalId;

    @ApiModelProperty(value = "合作银行id")
    private Integer cobankId;

    @ApiModelProperty(value = "审批日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date approvalTime;

    @ApiModelProperty(value = "审批状态")
    private Integer approvalStatus;

    @ApiModelProperty(value = "审批意见")
    private String approvalAdvise;

    //   修改数据库（历史贷款）
    @ApiModelProperty(value = "历史贷款")
    private  Integer is_history;

    @ApiModelProperty(value = "是否逾期")
    private Integer isOverdue;

    @ApiModelProperty(value = "是否合格")
    private Integer isQualified;

    private CoBank coBank;

    private Firm firm;


}
